\hypertarget{class_network_1_1_new_grid_connection_manager}{\section{Network\-:\-:New\-Grid\-Connection\-Manager$<$ Message\-Request, Message\-Response $>$ Class Template Reference}
\label{class_network_1_1_new_grid_connection_manager}\index{Network\-::\-New\-Grid\-Connection\-Manager$<$ Message\-Request, Message\-Response $>$@{Network\-::\-New\-Grid\-Connection\-Manager$<$ Message\-Request, Message\-Response $>$}}
}


Handle new connections. Handle subscription of new connections, use of referenced connections and connections availaibility. Request \& response message model must be specified.  




{\ttfamily \#include $<$New\-Grid\-Connection\-Manager.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_ac82b6f77c0a1b7977c01cdc699a6933e}{void \hyperlink{class_network_1_1_new_grid_connection_manager_ac82b6f77c0a1b7977c01cdc699a6933e}{Start} (boost\-::shared\-\_\-ptr$<$ \hyperlink{class_network_1_1_grid_tcp_connection}{Grid\-Tcp\-Connection}$<$ Message\-Request, Message\-Response $>$$>$ c)}\label{class_network_1_1_new_grid_connection_manager_ac82b6f77c0a1b7977c01cdc699a6933e}

\begin{DoxyCompactList}\small\item\em Reference a connection. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_af18db292c8bb712f13c54db499f10326}{void \hyperlink{class_network_1_1_new_grid_connection_manager_af18db292c8bb712f13c54db499f10326}{Stop} (boost\-::shared\-\_\-ptr$<$ \hyperlink{class_network_1_1_grid_tcp_connection}{Grid\-Tcp\-Connection}$<$ Message\-Request, Message\-Response $>$$>$ c)}\label{class_network_1_1_new_grid_connection_manager_af18db292c8bb712f13c54db499f10326}

\begin{DoxyCompactList}\small\item\em Kill a connection. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_a31cf3a4c74dbb306edd992ecdd218b68}{void \hyperlink{class_network_1_1_new_grid_connection_manager_a31cf3a4c74dbb306edd992ecdd218b68}{Update\-Sent\-Task\-List} (std\-::string task\-\_\-id)}\label{class_network_1_1_new_grid_connection_manager_a31cf3a4c74dbb306edd992ecdd218b68}

\begin{DoxyCompactList}\small\item\em Keep a record of executed tasks. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_aacc415408268e94eb9d9cb39fe1d96f3}{void \hyperlink{class_network_1_1_new_grid_connection_manager_aacc415408268e94eb9d9cb39fe1d96f3}{Execute\-Task} (Message\-Request $\ast$msg, std\-::string $\ast$request\-\_\-id)}\label{class_network_1_1_new_grid_connection_manager_aacc415408268e94eb9d9cb39fe1d96f3}

\begin{DoxyCompactList}\small\item\em Send a task to the first available client. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_a81dddaa554fbea16510e822a955362d4}{void \hyperlink{class_network_1_1_new_grid_connection_manager_a81dddaa554fbea16510e822a955362d4}{Stop\-All} ()}\label{class_network_1_1_new_grid_connection_manager_a81dddaa554fbea16510e822a955362d4}

\begin{DoxyCompactList}\small\item\em Close all registered connections. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_a26ccd919ae2f7c6ae105d2475ed3343d}{bool {\bfseries Check} (boost\-::shared\-\_\-ptr$<$ \hyperlink{class_network_1_1_grid_tcp_connection}{Grid\-Tcp\-Connection}$<$ Message\-Request, Message\-Response $>$$>$ c)}\label{class_network_1_1_new_grid_connection_manager_a26ccd919ae2f7c6ae105d2475ed3343d}

\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_af7aa6647fa54bc160c1a5a0e6413c6c7}{void \hyperlink{class_network_1_1_new_grid_connection_manager_af7aa6647fa54bc160c1a5a0e6413c6c7}{Check\-All} ()}\label{class_network_1_1_new_grid_connection_manager_af7aa6647fa54bc160c1a5a0e6413c6c7}

\begin{DoxyCompactList}\small\item\em Check all available connections for timout. \end{DoxyCompactList}\item 
\hypertarget{class_network_1_1_new_grid_connection_manager_a1b0564bb07c3037aadc93fe0313107b2}{void \hyperlink{class_network_1_1_new_grid_connection_manager_a1b0564bb07c3037aadc93fe0313107b2}{Print\-Available\-Connections} ()}\label{class_network_1_1_new_grid_connection_manager_a1b0564bb07c3037aadc93fe0313107b2}

\begin{DoxyCompactList}\small\item\em Print the numberof available connections on stdout. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Message\-Request, class Message\-Response$>$class Network\-::\-New\-Grid\-Connection\-Manager$<$ Message\-Request, Message\-Response $>$}

Handle new connections. Handle subscription of new connections, use of referenced connections and connections availaibility. Request \& response message model must be specified. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
gremlins\-\_\-static/\hyperlink{_new_grid_connection_manager_8h}{New\-Grid\-Connection\-Manager.\-h}\end{DoxyCompactItemize}
